package com.foreknow.domo7;

public class MethodDemo {
    public void m1(A a) { //a = new B();

    }

    public static void main(String[] args) {
        MethodDemo demo = new MethodDemo();
        demo.m1(new B());
    }
}
